package com.hxzy.module.admin.mapper;

import com.hxzy.module.admin.api.menu.resp.ModuleAuthorityResp;
import com.hxzy.module.admin.entity.AdminMenu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 11452
* @description 针对表【admin_menu(商户对应模块表)】的数据库操作Mapper
* @createDate 2024-01-28 10:57:27
* @Entity com.hxzy.module.admin.entity.AdminMenu
*/
public interface AdminMenuMapper extends BaseMapper<AdminMenu> {


    /**
     * 得到该商家的所有的菜单以及角色id还原是否有权限
     * @param merchantId
     * @param roleId
     * @return
     */
    List<ModuleAuthorityResp> getByAdminMenuList(@Param(value = "merchantId") Long merchantId,@Param(value = "roleId")  Long roleId);
}




